import { defHttp } from '@/utils/http/axios';
import { GetTaskLogListParams, TaskLogModel } from './model/taskLog';
import { BasicFetchResult } from '@/api/model/baseModel'


import { ErrorMessageMode } from '#/axios';

export function getTaskLogList(params: GetTaskLogListParams, mode: ErrorMessageMode = 'message') {
  return defHttp.get<BasicFetchResult<TaskLogModel>>(
    {
      url: '/task/task-logs',
      params,
    },
    {
      errorMessageMode: mode
    }
  );
}
